package com.syxbbs.forum.exception;

import com.syxbbs.forum.common.AppResult;

public class ApplicationException extends RuntimeException{

    protected AppResult errorResult;


    public ApplicationException(AppResult errorResult){
        super(errorResult.getMessage());
        this.errorResult=errorResult;
    }

    public AppResult getErrorResult() {
        return errorResult;
    }

    public ApplicationException(String message, Throwable cause) {
        super(message, cause);
    }

    public ApplicationException(String message) {
        super(message);
    }

    public ApplicationException(Throwable cause) {
        super(cause);
    }
}
